﻿@model IEnumerable<JinianNet.JNCms.Models.Users>
<!DOCTYPE html>
<html>
<head>
    <title>用户管理 - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
</head>
<body>
    <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="grid">
        <tr>
            <th width="50">选择</th>
            <th>会员帐号</th>
            <th>会员等级</th>
            <th>会员昵称</th>
            <th>真实姓名</th>
            <th>会员状态</th>
            <th>电子邮箱</th>
            <th>登陆 I P</th>
            <th>最后登陆</th>
            <th>注册时间</th>
            <th>操作</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td align="center">
                    <input type="checkbox" /></td>
                <td align="center">@item.Account</td>
                <td align="center">@item.GroupID</td>
                <td align="center">@item.NickName</td>
                <td align="center">@item.UserName</td>
                <td align="center">
                    @switch (item.Status)
                    {
                        case 0:
                        <span class="green">正常</span>
                            break;
                        case 1:
                        <span class="red">锁定</span>
                            break;
                        case 2:
                        <span class="red">未通过邮件认证</span>
                            break;
                        case 4:
                        <span class="red">未通过管理员认证</span>
                            break;
                        case 8:
                        <span class="red">未通过手机认证</span>
                            break;
                        default:
                        <span>--</span>
                            break;
                    }

                </td>
                <td align="center">@item.Email</td>
                <td align="center">@item.CurrentLoginIP</td>
                <td align="center">@item.CurrentLoginTime.ToString("yy年MM月dd")</td>
                <td align="center">@item.RegTime.ToString("yy年MM月dd")</td>
                <td align="center"><a href="/Manage/Users/Edit/@item.ID">编辑</a> <a href="/Manage/Users/Delete/@item.ID" onclick="return confirm('您确定要进行删除操作吗？')">删除</a></td>
            </tr>
        }
        <tr>
            <td colspan="11" align="center">
                <div class="PageLink">@(new MvcHtmlString(ViewData["WebPage"].ToString()))</div>
            </td>
        </tr>
    </table>
</body>
</html>
